var mongoose = require('mongoose');
mongoose.connect('mongodb://localhost/mern-starter');

var minihabit_Schema = mongoose.Schema({
  name: String,
  detail: String,
  time_way: String,
  start_time: String,
  stop_time: String,
  select_weekday: String,
  openid: String,
  times: Number,
  last_day: String,
  hint: Boolean,
  history: Array
});

var minihabits = mongoose.model('minihabits', minihabit_Schema);


module.exports = {
  minihabits: minihabits
};
